﻿using System;
using System.Configuration;
using System.Web.Configuration;


namespace BBI.Infrastructure.Config
{

    public class ContactFormElement : ConfigurationElement
    {

        [ConfigurationProperty("mailSubject", DefaultValue = "")]
        public string MailSubject
        {
            get { return (string)this["mailSubject"]; }
            set { this["mailSubject"] = value; }
        }

        [ConfigurationProperty("mailTo", IsRequired = true)]
        public string MailTo
        {
            get { return (string)this["mailTo"]; }
            set { this["mailTo"] = value; }
        }

        [ConfigurationProperty("mailCC")]
        public string MailCC
        {
            get { return (string)this["mailCC"]; }
            set { this["mailCC"] = value; }
        }

        /// <summary>
        /// 公司名称
        /// </summary>
        [ConfigurationProperty("companyName", DefaultValue = "某某公司")]
        public string CompanyName
        {
            get { return (string)this["companyName"]; }
            set { this["companyName"] = value; }
        }
        /// <summary>
        /// 公司地址
        /// </summary>
        [ConfigurationProperty("companyAdd", DefaultValue = "")]
        public string CompanyAdd
        {
            get { return (string)this["companyAdd"]; }
            set { this["companyAdd"] = value; }
        }
                /// <summary>
                /// 百度地图坐标
                /// </summary>
        [ConfigurationProperty("coordinate")]
        public string Coordinate
        {
            get { return (string)this["coordinate"]; }
            set { this["coordinate"] = value; }
        }
                      
        /// <summary>
        /// 联系人
        /// </summary>
        [ConfigurationProperty("contactMan", DefaultValue = "童柱港")]
        public string ContactMan
        {
            get { return (string)this["contactMan"]; }
            set { this["contactMan"] = value; }
        }


        /// <summary>
        /// 手机号
        /// </summary>
        [ConfigurationProperty("mobile", DefaultValue = "153 61828193")]
        public string Mobile
        {
            get { return (string)this["mobile"]; }
            set { this["mobile"] = value; }
        }

        /// <summary>
        /// 400电话
        /// </summary>
        [ConfigurationProperty("hotPhone", DefaultValue = "400-0000-0000")]
        public string HotPhone
        {
            get { return (string)this["hotPhone"]; }
            set { this["hotPhone"] = value; }
        }

        /// <summary>
        /// 联系电话
        /// </summary>
        [ConfigurationProperty("phone", DefaultValue = "86-000-00000000")]
        public string Phone
        {
            get { return (string)this["phone"]; }
            set { this["phone"] = value; }
        }

        /// <summary>
        /// Fax
        /// </summary>
        [ConfigurationProperty("fax", DefaultValue = "86-000-00000000")]
        public string Fax
        {
            get { return (string)this["fax"]; }
            set { this["fax"] = value; }
        }

        [ConfigurationProperty("zipCode", DefaultValue = "")]
        public string ZipCode
        {
            get { return (string)this["zipCode"]; }
            set { this["zipCode"] = value; }
        }

    }
}